const express = require('express');


const router = express.Router();


const menuList = [
  {
    path: '/home',
    icon: 'HomeOutlined',
    name: '首页'
  },
  {
    path: '/user',
    icon: 'UserOutlined',
    name: '用户管理',
    children: [
      {
        path: '/user/userList',
        name: '用户列表'
      },
      {
        path: '/user/collectionList',
        name: '收藏列表'
      },
    ]
  },
  {
    path: '/goods',
    icon: 'ShopOutlined',
    name: '商品管理',
    children: [
      {
        path: '/goods/goodsList',
        name: '商品列表'
      },
      {
        path: '/goods/brandList',
        name: '品牌列表'
      },
      {
        path: '/goods/modelList',
        name: '型号管理'
      },
      {
        path: '/goods/carCommentList',
        name: '车评管理'
      },
    ]
  },
  {
    icon: 'TeamOutlined',
    name: '社区中心',
    path: '/contract/orderList',
  },
  {
    path: '/system',
    icon: 'SettingOutlined',
    name: '系统管理',
    children: [
      {
        path: '/system/accountMananger',
        name: '账号管理'
      },
      {
        path: '/system/powerMananger',
        name: '权限管理'
      },
      {
        path: '/system/infoList',
        name: '系统消息'
      },
    ]
  },
]
// --------------------------------------------------查看我的收藏------------------------------------------
router.get('/get_menu', (req, res) => {
  res.send({
    code: 1,
    data: menuList
  })
})







module.exports = router